package com.lifeng.jk.service.impl;

import java.io.Serializable;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.UUID;

import oracle.net.aso.e;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lifeng.jk.dao.DepartmentDao;
import com.lifeng.jk.dao.FactoryDao;
import com.lifeng.jk.dao.SysUserDao;
import com.lifeng.jk.domain.Department;
import com.lifeng.jk.domain.Factory;
import com.lifeng.jk.domain.SysUser;
import com.lifeng.jk.service.DepartmentService;
import com.lifeng.jk.service.FactoryService;
import com.lifeng.jk.service.SysUserService;

@Service
public class DepartmentServiceImpl implements DepartmentService{
	@Autowired
	private DepartmentDao departmentDao;
	
	@Override
	public List<Department> find(Map paraMap) {
		return departmentDao.find(paraMap);
	}

	@Override
	public Department get(Serializable id) {
		return departmentDao.get(id);
	}

	@Override
	public void insert(Department entity) {
		entity.setId(UUID.randomUUID().toString());
		departmentDao.insert(entity);
	}

	@Override
	public void update(Department entity) {
		departmentDao.update(entity);
	}

	@Override
	public void deleteById(Serializable id) {
		departmentDao.deleteById(id);
	}

	@Override
	public void delete(Serializable[] ids) {
		departmentDao.delete(ids);
	}

}
